package com.geekgo.step1;

/**
 * @author HeHaoyang
 * @version 2016/6/7 18:54
 */
public class Car<T extends String> {
    private T info;

    public Car(T info) {
        this.info = info;
    }

    public T getInfo() {
        return info;
    }

    public void setInfo(T info) {
        this.info = info;
    }

    public static void main(String[] args) {
        Car<String> car = new Car<>("法拉利");
        System.out.println(car.getInfo());

    }
}
